package com.bckj.freshnow.goods.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

/**
 * 商品SKU表(GoodsSku)表实体类
 *
 * @author makejava
 * @since 2025-04-21 20:10:19
 */
@Data
@TableName("goods_sku")
public class GoodsSku {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    
/** 商品ID */
    private Long goodsId;
    
    
/** SKU编码 */
    private String skuCode;
    
    
/** 销售价 */
    private BigDecimal price;
    
    
/** 原价 */
    private BigDecimal originPrice;
    
    
/** 库存 */
    private Integer stock;
    
    
/** 库存预警值 */
    private Integer stockWarn;
    
    
/** 重量(g) */
    private BigDecimal weight;
    
    
/** SKU图片 */
    private String imageUrl;
    
    
/** 状态(1-启用 0-禁用) */
    private Integer status;


/** 规格 */
    private String spec;
    
    
/** ${column.comment} */
    private LocalDateTime createTime;
    
    
/** ${column.comment} */
    private LocalDateTime updateTime;
    

}

